package com.agriculture.entity;

import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class ViewCoupon implements Serializable {

    private static final long serialVersionUID = 1L;

    // id
    private Long id;

    // 优惠券 id
    private Long coupon_id;

    // 用户 id
    private Long userId;

    // 优惠券名称
    private String name;

    // 优惠券类型 1 为按百分比折扣 2 为以元为单位折扣
    private Integer type;

    // 优惠券备注
    private String remark;

    // 优惠券折扣额度
    private Integer value;

    // 起效时间
    private LocalDateTime effectiveTime;

    // 失效时间
    private LocalDateTime expirationTime;

    // 是否删除
    private Integer isDeleted;

    // 优惠券状态
    private Integer status;
}
